package com.syn.vr.repository;


import com.gaoyi.basemodule.basedao.BaseDao;
import com.syn.vr.db.VrDatabase;

public abstract class BaseRepository<T, D extends BaseDao<T>> {
    protected final D mDao;
    protected final VrDatabase mDatabase;

    protected abstract D getDao();

    public BaseRepository() {
        mDatabase = VrDatabase.getDatabase();
        mDao = getDao();
    }
}
